<?php

include_once "Model.php";

class User_ extends Model {

    public function User_($attr=null){ $this->table_name = USER_TABLE; parent::__construct($attr); }
    
    public function getDetails(){
    	
      $q = "SELECT * FROM ".USER_TABLE." WHERE id = {$this->attributes['id']}";
      
      return $this->SQL->query($q)->fetchObject();      
    }
}


?>
